package com.ymatou.iapi.couponservice.service;

import com.ymatou.iapi.couponservice.parameter.GetPagingUserCouponListReturnData;
import com.ymatou.iapi.couponservice.parameter.GetProductAvailablePlatformCouponResp;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.DataUtil;
import com.ymttest.utils.EnvSetup;
/**
*获取商品可用的平台优惠券列表Call
*FreeMaker Template自动生成代码
*/
public class getProductAvailablePlatformCouponListCall extends YmatouBaseCall{
	private static String opurl ="/api/Promotion/getProductAvailablePlatformCouponList";
	
	public getProductAvailablePlatformCouponListCall() {
		super(EnvSetup.getSystemUrl("couponservice"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public GetProductAvailablePlatformCouponResp GetProductAvailablePlatformCouponResp() {
		GetProductAvailablePlatformCouponResp data = null;
		try {
			data = (GetProductAvailablePlatformCouponResp) FormatUtil.GSONToObject(getString("data"),
					GetProductAvailablePlatformCouponResp.class);

		} catch (Exception e) {
			e.printStackTrace();
		}
		return data;
	}
}